package com.byedu.mapper.course;

import com.byedu.domain.course.UserQuestionDO;
import com.byedu.domain.course.UserQuestionErrDO;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by Luo on 2017-04-27.
 */
@Repository
public interface UserQuestionErrMapper {


    /**
     * @description 获取用户答题卡
     * @author luo
     * @date 2017-04-27
     * @param userId
     * @return
     */
    List<UserQuestionErrDO> listUserQuestionErrsByUserId(String userId);
    List<Integer> listErrIdsByUserId(String userId);

    /**
     * @description 删除用户错题答题卡信息
     * @author chenxigui
     * @date 2017-04-29
     */
    void deleteByUserIdAndQuestionId(String userId,int questionId);

    /**
     * @description 批量插入错题答题卡
     * @author chenxigui
     * @date 2017-04-29
     * @param userQuestionErrs
     */
    void insertUserQuestionErrBatch(List<UserQuestionErrDO> userQuestionErrs);

    void insertOrupdateUserQuestionErr(UserQuestionErrDO userQuestionErr);

}
